package beans;

import java.io.Serializable;


public class MozoBean extends PersonalBean implements Serializable{
	
	private static final long serialVersionUID = 1L;
	private float porComision;
	private float comisionAcum;
	
	public MozoBean() {
		super();
	}
	
	public float getPorComision() {
		return porComision;
	}
	public void setPorComision(float porComision) {
		this.porComision = porComision;
	}
	public float getComisionAcum() {
		return comisionAcum;
	}
	public void setComisionAcum(float comisionAcum) {
		this.comisionAcum = comisionAcum;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + Float.floatToIntBits(comisionAcum);
		result = prime * result + Float.floatToIntBits(porComision);
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		MozoBean other = (MozoBean) obj;
		if (Float.floatToIntBits(comisionAcum) != Float
				.floatToIntBits(other.comisionAcum))
			return false;
		if (Float.floatToIntBits(porComision) != Float
				.floatToIntBits(other.porComision))
			return false;
		return true;
	}

	
}
